package com.ktjy.car.entity;

import lombok.Data;
import java.io.Serializable;

@Data
public class Brand implements Serializable {
    private Long id;
    private String name;

    // Redis缓存的key前缀
    public static final String CACHE_KEY_PREFIX = "brand:";

    // 获取缓存key
    public static String getCacheKey(Long id) {
        return CACHE_KEY_PREFIX + id;
    }
}